package ooday02.animal;

public  class Chick extends Animal{
    Chick(int age,String name,String color){
        super(age,name,color);
    }

    @Override
    void eat(){
        System.out.println("名字:"+name+"岁数:"+age+"颜色"+color+"小鸡吃饲料");
    }
    void layEggs(){
        System.out.println("名字:"+name+"岁数:"+age+"颜色"+color+"鸡下了几个蛋");
    }
//    static void staFunc(){
//        System.out.println("子类鸡的静态方法");
//    }
}
